﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

namespace MidSoft.ProjectInfo
{
    public partial class Show : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    int ProjectInfoId = (Convert.ToInt32(strid));
                    ShowInfo(ProjectInfoId);
                }
            }
        }

        private void ShowInfo(int ProjectInfoId)
        {
            ChinaSoft.BLL.BLL_tb_MidSoft_ProjectInfo bll = new ChinaSoft.BLL.BLL_tb_MidSoft_ProjectInfo();
            ChinaSoft.Model.Model_tb_MidSoft_ProjectInfo model = bll.GetModel(ProjectInfoId);
            this.lblProjectName.Text = model.ProjectName;
            this.lblProjectSpecialty.Text = model.ProjectSpecialty;
            this.lblMarker.Text = model.Marker;
            this.lblArea.Text = model.Area;
            this.lblCustomer.Text = model.Customer;
            this.lblProperty.Text = model.Property;
            this.lblDescription.Text = model.Description;
            this.lblCreateTime.Text = model.CreateTime.ToString();
        }

    }
}